Skip to content

Conversation

@ContextFound
Copy link

@ContextFound ContextFound commented Jan 13, 2026

Markdown links with a well formed title do not render at all. click here displays as shown instead of creating a "click here" link. This fixes that by enhancing the regex that handles the link markdown. It also addresses an issue where widget.url is not populated effecting screen readers and debugging.

  • Update link regex to support optional title attribute: text
  • Update URL extraction logic to strip title portion from raw URL
  • Included 7771bbc to apply default link color (blue) when you don't include a style
  • Pass url parameter to LinkButton constructor in ATagMd.build()

Activates previously skipped tests that prove the fixes.

- Pass url parameter to LinkButton constructor in ATagMd.build()
- Update link regex to support optional title attribute: [text](url "title")
- Update URL extraction logic to strip title portion from raw URL

Includes test infrastructure and regression tests to prevent recurrence.
@ContextFound
Copy link
Author

fix: default link style - the style parameter for links used a ?.copyWith(), so if nothing was passed in, it didn't apply the default formatting color of blue. Changed it to apply the default if the style is null. Validated with included test, but also validated in-app using https://github.com/ContextFound/gpt_markdown_viewer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant